﻿#bar {
    position: relative;
    height: 85%;
    width: 20px;
    left: 50%;
    background-color: #BBA933;
    -ms-transform-origin: 10px bottom;
    top: 10%;
}
#bpm, #tempo {
	font-size: 42px !important;
}

.homepage {
	-ms-grid-columns: 120px 2fr 40px 1fr;
	-ms-grid-rows: 140px 1fr 50px;
	display: -ms-grid;
	height: 100%;
	width: 100%;
}

.homepage header {
	-ms-grid-column-span: 4;
}

.homepage section[role=main] {
	-ms-grid-column: 2;
	-ms-grid-row: 2;
}

.homepage section[role=main] #metronome {
	height: 100%;
	width: 100%;
}

	.homepage .sub {
		-ms-grid-column: 4;
		-ms-grid-row: 2;
		-ms-grid-columns: 1fr;
		-ms-grid-rows: 1fr 20px 1fr;
		display: -ms-grid;
	}
	
	.homepage .sub #bpm {
		-ms-grid-row: 1;
		height: 100%;
		width: 100%;
	}
	
	.homepage .sub #tempo {
		-ms-grid-row: 3;
		height: 100%;
		width: 100%;
	}
	
@media screen and (-ms-view-state: snapped) {
	.homepage {
	    -ms-grid-columns: 1fr;
	    -ms-grid-rows: 140px 3fr 1fr 50px;
		display: -ms-grid;
		height: 100%;
		width: 100%;
	}
    .homepage section[role=main] {
		-ms-grid-column: 1;
		-ms-grid-row: 2;
    }
	.homepage section[role=main] #metronome {
		height: 100%;
		width: 100%;
	}
		.homepage .sub {
			-ms-grid-column: 1;
			-ms-grid-row: 3;
			-ms-grid-columns: 1fr;
			-ms-grid-rows: 1fr 20px 1fr;
			display: -ms-grid;
		}
		.homepage .sub #bpm {
			-ms-grid-column: 1;
			-ms-grid-row: 1;
			height: 100%;
			width: 100%;
		}
		.homepage .sub #tempo {
			-ms-grid-column: 1;
			-ms-grid-row: 3;
			height: 100%;
			width: 100%;
		}
}

@media screen and (-ms-view-state: fullscreen-portrait) {
	.homepage {
		-ms-grid-columns: 120px 1fr;
		-ms-grid-rows: 140px 3fr 1fr 50px;
		display: -ms-grid;
		height: 100%;
		width: 100%;
	}
    .homepage section[role=main] {
        -ms-grid-column: 2;
		-ms-grid-row: 2;
    }
	.homepage section[role=main] #metronome {
		height: 100%;
		width: 100%;
	}
		.homepage .sub {
			-ms-grid-column: 2;
			-ms-grid-row: 3;
			-ms-grid-columns: 1fr;
			-ms-grid-rows: 1fr 20px 1fr;
			display: -ms-grid;
		}
		.homepage .sub #bpm {
			-ms-grid-column: 1;
			-ms-grid-row: 1;
			height: 100%;
			width: 100%;
		}
		.homepage .sub #tempo {
			-ms-grid-column: 1;
			-ms-grid-row: 3;
			height: 100%;
			width: 100%;
		}
}
